﻿namespace System
{
    [ImportClass(String.Empty, "Object")]
    public class Object
    {
        public virtual string ToString()
        {
            return "Object";
        }

        [NonScript]
        public virtual int GetHashCode()
        {
            return 0;
        }

        [NonScript]
        public virtual bool Equals(Object that)
        {
            return false;
        }

        [NonScript]
        public virtual System.Collections.IEnumerator GetEnumerator()
        {
            return null;
        }

        //Note: this is for js dynamic access
        public object this[string propertyName]
        {
            get { return null; }
            set { }
        }

        public bool HasOwnProperty(string propertyName)
        {
            return false;
        }

        public static Object Prototype;
    }
}
